/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package map;

import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Administrator
 */
@ManagedBean(name="mapMB")
@RequestScoped
public class MapMB implements Serializable {
private String distans;
    /** Creates a new instance of MapMB */
    public MapMB() {
    }

    public String getDistans() {
        return distans;
    }

    public void setDistans(String distans) {
        this.distans = distans;
    }

    public String action(){
        System.out.println("两点直线距离为："+distans+"(米)");
        return "/index";
    }
}
